package com.ruoyi.project.module.packetConfig.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 定时发红包配置表 red_packet_config
 * 
 * @author ruoyi
 * @date 2018-08-23
 */
public class PacketConfig extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 红包id */
	private String redPacketConfigId;
	/** 红包金额 */
	private BigDecimal redPacketAdmount;
	/** 红包描述 */
	private String redPacketRemark;
	/** 红包图片 */
	private String redPacketPic;
	/** 母红包数量 */
	private Integer redPacketNumber;
	/** 红包数量 */
	private Integer redPacketQuantity;
	/** NORMAL:普通红包

DENSE:密码红包

OFFICAL:祝福红包

ALLCOUNTRY:全国红包;ROBOT:系统发私人红包 */
	private String redPacketType;
	/** 红包密码 */
	private String redPacketPw;
	/** 红包所在经度 */
	private BigDecimal redPacketLon;
	/** 红包所在纬度 */
	private BigDecimal redPacketLat;
	/** 随机规则(KM:范围红包,ALLCITY:全市,ALLAREA:全区) */
	private String randomRules;
	/** 广告外部链接 */
	private String advertisingExternalLink;
	/** 广告手机号码 */
	private String advertisingPhone;
	/** 广告地址 */
	private String advertisingAddress;
	/** 创建时间 */
	private Date ctime;
	/** 所属用户id  */
	private String redPacketUserId;
	/** 红包状态
FINISH:完成 
UNFINISH:未完成,
EXPIRED:过期退回
WAITPAY:待支付
FAIL:失效
REFUNDING:退款中
 */
	private String redPacketStatus;
	/** 子红包领取城市 : 有值时，默认为城市可见， */
	private String redPacketSonCity;
	/** 子红包领取区县 : 有值时，默认为区县可见， */
	private String redPacketSonArea;
	/** 发红包用户头像 */
	private String userImg;

	public void setRedPacketConfigId(String redPacketConfigId) 
	{
		this.redPacketConfigId = redPacketConfigId;
	}

	public String getRedPacketConfigId() 
	{
		return redPacketConfigId;
	}
	public void setRedPacketAdmount(BigDecimal redPacketAdmount) 
	{
		this.redPacketAdmount = redPacketAdmount;
	}

	public BigDecimal getRedPacketAdmount() 
	{
		return redPacketAdmount;
	}
	public void setRedPacketRemark(String redPacketRemark) 
	{
		this.redPacketRemark = redPacketRemark;
	}

	public String getRedPacketRemark() 
	{
		return redPacketRemark;
	}
	public void setRedPacketPic(String redPacketPic)
	{
		this.redPacketPic = redPacketPic;
	}

	public String getRedPacketPic()
	{
		return redPacketPic;
	}
	public void setRedPacketNumber(Integer redPacketNumber) 
	{
		this.redPacketNumber = redPacketNumber;
	}

	public Integer getRedPacketNumber() 
	{
		return redPacketNumber;
	}
	public void setRedPacketQuantity(Integer redPacketQuantity) 
	{
		this.redPacketQuantity = redPacketQuantity;
	}

	public Integer getRedPacketQuantity() 
	{
		return redPacketQuantity;
	}
	public void setRedPacketType(String redPacketType) 
	{
		this.redPacketType = redPacketType;
	}

	public String getRedPacketType() 
	{
		return redPacketType;
	}
	public void setRedPacketPw(String redPacketPw) 
	{
		this.redPacketPw = redPacketPw;
	}

	public String getRedPacketPw() 
	{
		return redPacketPw;
	}
	public void setRedPacketLon(BigDecimal redPacketLon) 
	{
		this.redPacketLon = redPacketLon;
	}

	public BigDecimal getRedPacketLon() 
	{
		return redPacketLon;
	}
	public void setRedPacketLat(BigDecimal redPacketLat) 
	{
		this.redPacketLat = redPacketLat;
	}

	public BigDecimal getRedPacketLat() 
	{
		return redPacketLat;
	}
	public void setRandomRules(String randomRules) 
	{
		this.randomRules = randomRules;
	}

	public String getRandomRules() 
	{
		return randomRules;
	}
	public void setAdvertisingExternalLink(String advertisingExternalLink) 
	{
		this.advertisingExternalLink = advertisingExternalLink;
	}

	public String getAdvertisingExternalLink() 
	{
		return advertisingExternalLink;
	}
	public void setAdvertisingPhone(String advertisingPhone) 
	{
		this.advertisingPhone = advertisingPhone;
	}

	public String getAdvertisingPhone() 
	{
		return advertisingPhone;
	}
	public void setAdvertisingAddress(String advertisingAddress) 
	{
		this.advertisingAddress = advertisingAddress;
	}

	public String getAdvertisingAddress() 
	{
		return advertisingAddress;
	}
	public void setCtime(Date ctime) 
	{
		this.ctime = ctime;
	}

	public Date getCtime() 
	{
		return ctime;
	}
	public void setRedPacketUserId(String redPacketUserId) 
	{
		this.redPacketUserId = redPacketUserId;
	}

	public String getRedPacketUserId() 
	{
		return redPacketUserId;
	}
	public void setRedPacketStatus(String redPacketStatus) 
	{
		this.redPacketStatus = redPacketStatus;
	}

	public String getRedPacketStatus() 
	{
		return redPacketStatus;
	}
	public void setRedPacketSonCity(String redPacketSonCity) 
	{
		this.redPacketSonCity = redPacketSonCity;
	}

	public String getRedPacketSonCity() 
	{
		return redPacketSonCity;
	}
	public void setRedPacketSonArea(String redPacketSonArea) 
	{
		this.redPacketSonArea = redPacketSonArea;
	}

	public String getRedPacketSonArea() 
	{
		return redPacketSonArea;
	}
	public void setUserImg(String userImg) 
	{
		this.userImg = userImg;
	}

	public String getUserImg() 
	{
		return userImg;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("redPacketConfigId", getRedPacketConfigId())
            .append("redPacketAdmount", getRedPacketAdmount())
            .append("redPacketRemark", getRedPacketRemark())
            .append("redPacketPic", getRedPacketPic())
            .append("redPacketNumber", getRedPacketNumber())
            .append("redPacketQuantity", getRedPacketQuantity())
            .append("redPacketType", getRedPacketType())
            .append("redPacketPw", getRedPacketPw())
            .append("redPacketLon", getRedPacketLon())
            .append("redPacketLat", getRedPacketLat())
            .append("randomRules", getRandomRules())
            .append("advertisingExternalLink", getAdvertisingExternalLink())
            .append("advertisingPhone", getAdvertisingPhone())
            .append("advertisingAddress", getAdvertisingAddress())
            .append("ctime", getCtime())
            .append("redPacketUserId", getRedPacketUserId())
            .append("redPacketStatus", getRedPacketStatus())
            .append("redPacketSonCity", getRedPacketSonCity())
            .append("redPacketSonArea", getRedPacketSonArea())
            .append("userImg", getUserImg())
            .toString();
    }
}
